package com.hzk.config;

import com.hzk.pojo.UserBasic;

/**
 * @auoter:jackh
 */



public class UserContext {

    private static ThreadLocal<UserBasic> userHolder = new ThreadLocal<UserBasic>();

    public static UserBasic getUser() {

        return userHolder.get();
    }

    public static void setUser(UserBasic user) {
        userHolder.set(user);
    }

    public static void removeUser() {
        userHolder.remove();
    }

}
